***** H2 - Parents hypothesis - 25-34

* Produce Table 1 in Appendix P - Parents hypothesis with an alternative cutoff regarding the explanatory variable

		clear all
		
		cd "${data}"	
		
		use data_ess.dta, clear
		
		* Declare survey design for dataset
		svyset, clear 
		svyset country_code [weight=pspwght], strata(essround)

		* Define significance stars for tables
		global stars "+ 0.10 * 0.05 ** 0.01 *** 0.001"
		
		eststo clear
		
		eststo m1: svy: reg stfeco  b0.dummy2534 agea income b0.unemployed education i.essround i.country_code if agea>34 // restricted sample
		
		eststo Economy: svy: reg stfeco b0.dummy2534 agea income b0.unemployed education unemployment_rate i.essround i.country_code if agea>34 // restricted sample

		eststo m3: svy: reg stfgov  b0.dummy2534 agea income b0.unemployed education i.essround i.country_code if agea>34 // restricted sample
	
		eststo Government: svy: reg stfgov b0.dummy2534 agea income b0.unemployed education unemployment_rate i.essround i.country_code  if agea>34  // restricted sample

		
	
		esttab m1 Economy m3 Government using ${tables}/appendixP.tex, ///
			nomtitles booktabs replace ///
			indicate("Country FE = *.country_code" "Year FE = *.essround", labels("\checkmark" "")) ///
			stats(N r2, fmt(%9.0fc %9.2fc) labels("Observations" "R-squared")) ///
			nobaselevels substitute("=1" "") nogap compress nonotes b(2) se(2) starlevels( ${stars}) label mlabels("Model 1" "Model 2" "Model 3" "Model 4" ) 
			

